__author__ = 'chenglin'
import os


basedir = os.path.abspath(os.path.dirname(__file__))

CSRF_ENABLED = True
SECRET_KEY = 'you-will-never-guess'

DB_HOST = 'localhost'
DB_PORT = 5432
DB_NAME = 'exp'
DB_USER = 'dbuser'
DB_PASSWORD = '1'


SQLALCHEMY_ECHO = True
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')

#SQLALCHEMY_DATABASE_URI = 'mysql://%s:%s@%s:%s/%s' % (MYSQL_USER, MYSQL_PASSWORD, MYSQL_HOST, '3306', MYSQL_NAME)
SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/test.db'
#postgresql://yourusername:yourpassword@localhost/yournewdb"
# SQLALCHEMY_DATABASE_URI ='postgresql://%s:%s@%s:%s/%s' % (DB_USER, DB_PASSWORD, DB_HOST, DB_PORT, DB_NAME)

